class AssetError(Exception):
    def __init__(self, result_code):
        super(AssetError, self).__init__(result_code.msg)
        self.error_info = result_code.msg
        self.error_code = result_code.code

    def __str__(self):
        return self.error_info


class HealthCheckTaskException(AssetError):
    pass


class TaskException(AssetError):
    pass
